// 客户单位
import request from "@/utils/https/requests";

// 列表
export function dwInfoList(data: any) {
  return request({
    url: "/dwInfo/list",
    method: "post",
    data,
  });
}

// 添加
export function postAddDwInfo(data: any) {
  return request({
    url: "/dwInfo/postAdd",
    method: "post",
    data,
  });
}

// 修改
export function postModDwInfo(data: any) {
  return request({
    url: `/dwInfo/postMod/{${data.id}`,
    method: "post",
    data,
  });
}

// 删除
export function postDeleteDwInfo(id: string) {
  return request({
    url: `/dwInfo/postDelete/${id}`,
    method: "post",
  });
}

// 逻辑 删除
export const postLogicDeleteDwInfo = (id) => {
  return request({
    url: `/dwInfo/postLogicDelete/${id}`,
    method: "post",
  });
};

// 详情
export function dwInfoDetail(id: string) {
  return request({
    url: `/dwInfo/detail/${id}`,
    method: "post",
  });
}
